﻿@{
    ViewBag.Title = "CategoryWidgetTest";
    Layout = "~/Views/Shared/_Page.cshtml";
}

<h2>CategoryWidgetTest</h2>

<div class="row">
    <div id="category1"></div>
</div>

<script type="text/javascript" src="/JS/ZeusApp/lordjs.categoryWidget.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        var category_id = "#category1";
        
        $.getJSON("/Data/test.json", function (data) {
            $(category_id).categoryWidget({
                categoryId: category_id,
                category: data[0]
            });
        });
        
    });
</script>
